home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Makefiles / prepmake < prev    next >
Encoding:
Text File  |  1994-10-16  |  802 b   |  37 lines

  1. #!/bin/sh
  2. # Written by Don Yacktman for use with the MiscKit
  3. # Copyright (C) 1994, by Don Yacktman, all rights reserved.
  4.  
  5. # If needed, install tool.make in /NextDeveloper/Makefiles/app,
  6. # if we can...
  7.  
  8. if [ -f $2 ] ; then
  9.     echo 'Found tool.make...OK'
  10. else
  11.     echo 'Could not find tool.make...installing'
  12.     cp Makefiles/tool.make $2
  13.     chmod 644 $2 
  14.     if [ -f $2 ] ; then
  15.         echo 'Installed OK.'
  16.     else
  17.         echo 'Installation failed...run as root to install tool.make.'
  18.         exit 1
  19.     fi
  20. fi
  21.  
  22. # If needed, build and install arch_tool...if we can...
  23.  
  24. if [ -f $1 ] ; then
  25.     echo 'Found arch_tool...OK'
  26. else
  27.     (cd Examples/arch_tool; make install; )
  28.     if [ -f $1 ] ; then
  29.         echo 'arch_tool built and installed...OK'
  30.     else
  31.         echo 'Unable to build and install arch_tool properly.  Run as root.'
  32.     fi
  33. fi
  34.  
  35. exit 0;
  36.  
  37.